import type{ StateCreator } from 'zustand'; // 1. 导入类型
import type{  pageInfoStoreType, pageInfoType } from '@/utils/type';
import { defaultPageInfo } from '@/utils/default';




export const pageInfoStore: StateCreator<pageInfoStoreType> = (set) => ({
  pageInfo: defaultPageInfo,
  setPageInfo: (pageInfo: pageInfoType) =>
    set(() => ({
      pageInfo,
    })),
});